package com.gamefx.resource
{
	import flash.events.Event;
	import flash.utils.ByteArray;

	public class TextLoader extends DataLoader
	{
		public function TextLoader(urlOrRequest:*, priority:uint=1, estimatedBytes:uint=0)
		{
			super(urlOrRequest, priority, estimatedBytes);
		}
		
		
		
		/**
		 * 
		 */
		private var _data:String;

		public function get data():String
		{
			return _data;
		}
		
		
		
		override protected function onDataComplete(event:Event, bytes:ByteArray):void
		{
			_data = String(data);
			
			super.onComplete(event);
		}
		
	}
}